var express = require('express');
var router = express.Router();

router.post('/seckill', async function(req, res, next) {
    var result = await global.service.seckill(req.query['id']);
    res.send(result);
});

router.post('/setup', async function(req, res, next) {
    var result = await global.service.setup(req.query['id']);
    res.send(result);
});

module.exports = router;